﻿using System;
using fastCSharp;

namespace diantou.web.ajax.setFocus
{
    /// <summary>
    /// 关注用户操作
    /// </summary>
    [fastCSharp.code.cSharp.ajax(IsPool = true, IsAttribute = true, IsBaseTypeAttribute = true)]
    class user : focus<user, diantou.dataAccess.focusUser>
    {
        /// <summary>
        /// 设置关系
        /// </summary>
        /// <param name="value"></param>
        /// <param name="onReturn"></param>
        [fastCSharp.code.cSharp.ajax]
        public void SetRelation(diantou.dataAccess.focusUser value, Action<fastCSharp.net.returnValue<int>> onReturn)
        {
            value.UserId = currentUser.Id;
            diantou.dataAccess.tcpCall.focusUser.setRelation(value, onReturn);
        }
    }
}